package com.ziyun.pop.modules.quoteProductBaseInfo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ziyun.pop.modules.order.vo.QuoteAllotCraftsVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.pop.modules.quoteProductBaseInfo.dao.QuoteProductBaseInfoDao;
import com.ziyun.pop.modules.quoteProductBaseInfo.entity.QuoteProductBaseInfoEntity;
import com.ziyun.pop.modules.quoteProductBaseInfo.service.QuoteProductBaseInfoService;


@Service("quoteProductBaseInfoService")
public class QuoteProductBaseInfoServiceImpl extends ServiceImpl<QuoteProductBaseInfoDao, QuoteProductBaseInfoEntity> implements QuoteProductBaseInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<QuoteProductBaseInfoEntity> page = (Page<QuoteProductBaseInfoEntity>) this.page(
                new Query<QuoteProductBaseInfoEntity>(params).getPage(),
                new QueryWrapper<QuoteProductBaseInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<QuoteAllotCraftsVo> getCraftsAllotInfo(Map<String, Object> queryMap) {
        return this.baseMapper.getCraftsAllotInfo(queryMap);
    }

}
